Digital interpolator and method of interpolating

ABSTRACT

The present invention relates to a digital interpolator, comprising an input to receive an input signal at a first clock frequency and comprising an output to provide an interpolated signal at a second clock frequency larger than the first clock frequency. The interpolator comprises a differentiator connected to the input, an interpolator stage connected to a differentiator output, and an integrator connected to the output and connected to an output of the interpolator stage.

This application claims priority from European patent application No.14176797.0 filed Jul. 11, 2014, the entire disclosure of which is herebyincorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates to a digital interpolator and to arespective method of interpolating a sequence of digital signals at afirst clock frequency to a sequence of signals at a second clockfrequency larger than the first clock frequency.

BACKGROUND AND PRIOR ART

For efficient data storage it is advantageous to reduce the amount ofdata in the storage and to reproduce a series or sequence of signalsfrom only two consecutively stored signals or storage values. In thisway, storage space can be saved and/or data to be stored can becompressed. For specific applications, for instance with wearable ormobile electronic devices, such like mobile phones or wrist watchesthere might be a demand for storing data representing sound or music ata comparatively low sampling rate. When reading the data from the memoryand for reproducing the sound or music from the stored data a hardwareimplemented interpolation of the stored signals is generally required.

There exists solutions for digital interpolators that make use of acascade of finite response filters (FIR), e.g. in order to implement aninterpolation from 32 kHz to 256 kHz. Such a cascade of FIR filtersrequires a comparatively large amount of gates or memory blocks, whichin turn may cover a major portion of the area of a respective integratedcircuit (IC).

An interpolation filter is also known in view of the patent applicationEP 0 658 979 A2 and the patent U.S. Pat. No. 5,835,390

The patent application US 2010/0135368 A1 describes an apparatus able toperform an interpolation of an input sample stream. For that theinterpolating mechanism comprises an up-sampler structure, whichincludes a linear interpolator. The up-sampler circuit comprises adifferentiator, a linear interpolator and an integrator for providing anoutput interpolated signal having a frequency greater than the frequencyof the input signal.

SUMMARY OF THE INVENTION

It is therefore an object of the present invention to provide animproved digital interpolator, wherein the hardware of the interpolatorrequires less space on an integrated circuit. In addition, the digitalinterpolator should exhibit a rather simple structure in terms of itsnumber and arrangement of gates or memory blocks in order to save spaceon the integrated circuit. At the same time, the digital interpolatorshould provide good or excellent interpolation results and should runstable even on a long-term scale.

In a first aspect the invention relates to a digital interpolatorcomprising an input to receive an input signal at a first clockfrequency. The digital interpolator further comprises an output toprovide an interpolated signal at a second clock frequency, wherein thesecond clock frequency is larger than the first clock frequency. Theinterpolator comprises a differentiator that is connected to the input.The interpolator further comprises an interpolator stage connected to adifferentiator output and further comprises an integrator connected tothe output and connected to an interpolator output.

Hence, the digital interpolator comprises three stages or components,namely a differentiator stage, denoted as differentiator, aninterpolator stage and an integrator or integrator stage. The threecomponents or stages are arranged in series or as a cascade of stages.The input of the digital interpolator is provided by an input of thedifferentiator. An output of the differentiator is connected to an inputof the interpolator stage and the output of the interpolator stage isconnected to an input of the integrator, while the output of theintegrator forms the output of the digital interpolator. As will beexplained below, the series or cascade of differentiator, interpolatorstage and integrator provides a space-saving approach to a digitalinterpolator, which is less spacious compared to a cascade of a numberof FIR. Also the total number of memory blocks or memory cells on the ICcan be reduced. At the same time, the overall architecture of thedigital interpolator can be simplified. In effect, the digitalinterpolator comprised of differentiator, interpolator stage andintegrator is rather robust and serves to provide interpolated signalsof sufficient or even excellent quality.

According to an embodiment the digital interpolator comprises a firstclock operated on the first clock frequency and further comprises asecond clock operated on the second clock frequency. As alreadymentioned, the second clock frequency is larger than the first clockfrequency. In a further embodiment the second clock frequency is aninteger multiple of the first clock frequency. The digital interpolator,hence the sequence or cascade of differentiator, interpolator stage andintegrator serves to provide a signal for each clock signal of thesecond clock frequency on the basis of consecutive signals of the firstclock frequency. For example, the second clock frequency is eight timeslarger than the first clock frequency. In this way compressed datastored in a memory and subject to a read operation on the basis of thefirst clock frequency is transferable into an interpolated signal on thebasis of the second clock frequency.

According to another embodiment the differentiator is operated on thefirst clock frequency while the interpolator stage and the integratorare operated on the second clock frequency. By means of thedifferentiator, the signals to be interpolated are initiallydifferentiated. Hence, a first derivative of the sequence of datasignals is derived and obtained. The interpolation carried out by theinterpolator stage is then performed and conducted on the basis of adifferentiated signal sequence. The integrator at the end re-transformsthe interpolated signal into data signals but at a larger second clockfrequency compared to the first clock frequency at which data readout isconducted.

In this way, the overall architecture of the digital interpolator can besimplified without any substantial detrimental effects in regard tosignal quality compared to conventional solutions that might be based ona cascade of FIR stages.

According to a further embodiment the differentiator comprises a storagethat is driven or operated by the first clock frequency and furthercomprises a subtractor to calculate the difference between the inputsignal at a first clock time of the first clock and between the inputsignal at a following clock time of the first clock. Typically, thestorage effectively acts as a shift register. It stores an input signalat a first clock time of the first clock and forwards the stored signalto the differentiator at the following clock time of the first clock.

While forwarding the first input signal to the differentiator at orduring the following clock time, the signal provided and coinciding withthe following clock time of the first clock is stored by the storage.During a further, hence during a next consecutive clock time, the signalstored by or during the second clock time is forwarded to thedifferentiator and so on. Hence, the storage provides and forwards theinput signal to the differentiator that corresponds to the previousclock time while the differentiator's subtractor is connected to both,the output of the storage of the differentiator and to the overall inputof the digital interpolator, hence to the input of the differentiator.The subtractor is then operable to calculate the difference between theinput signal at a first clock time and the input signal at a second orconsecutive clock time. Hence, the output of the subtractor is alwaysindicative of the change and the difference between consecutive inputsignals that are provided at the first clock frequency.

According to another embodiment the interpolator stage comprises astorage, an adder, a divider and a subtractor. There, an output of theadder is connected to a divider's input. A divider's output is connectedto a storage input. A storage output is connected to an input of theadder and a further input of the adder is connected to the output of thedifferentiator. In other words, the interpolator stage comprises a loopconsisting of the adder, the divider and the storage.

Here, one input of the subtractor is connected to the input of theinterpolator stage. It is hence parallel to the adder while a secondinput of the subtractor is connected with the output of the divider.This particular arrangement of storage, adder, divider and subtractorallows to calculate a series of signals that are located between theoutput of the differentiator at a first clock time and the output of thedifferentiator at a following or second clock time. The interpolatorstage as implemented by the arrangement of storage, adder, divider andsubtractor provides a particular interpolation function, which is ratherbeneficial and effective to calculate a series of signal values on thebasis of the second clock frequency that continuously approach values ofconsecutive signals provided on the basis of the first clock frequency.

By means of the loop of storage, adder and divider, a signal initiallyprovided e.g. at the first clock time of the first clock frequency canbe added with a signal previously stored by the storage. The addition ofthe two signals is divided by the divider and the divided signal isstored in the memory, which comparable to the storage of thedifferentiator, may act as a kind of a shift register. In comparison tothe differentiator, the interpolator stage is operated on the secondclock signal. Hence, the time interval between consecutive operations ofthe interpolator stage is shorter than the time interval between twoconsecutive signals provided at the first clock frequency.

Assuming that the output of the differentiator is 0 at the first clocktime of the first clock and that the output equals 1 at the consecutiveclock time of the first clock, the interpolator stage is operable tocalculate a sequence of signals in between these consecutive outputsignals. Assuming that the divider of the interpolator stage constantlyprovides a division by the factor 2, the loop of adder, divider andstorage is operable to generate a sequence of the following values: ½,¾, ⅞, 15/16, 31/32, and so on.

According to a further embodiment the divider of the interpolator stagedivides the output of the adder by a constant factor. The output of thedivider is connected to the input of the interpolator stage's storage.The storage of the interpolator stage is driven by the second clockfrequency. The input of the storage provided at a first clock time ofthe second clock is then provided to the input of the adder at afollowing or consecutive clock time of the second clock. Hence, oneinput of the interpolator stage's adder is connected to an output of theinterpolator stage's storage while the other input of the adder isconnected to the output of the differentiator, in particular it isconnected to the output of the subtractor of the differentiator.

According to a further embodiment the divider of the interpolator stagedivides the output of the adder by a constant factor before the dividedoutput of the adder is stored by the interpolator stage's storage.

According to another embodiment the subtractor of the interpolator stagehas a first input connected to the differentiator output and further hasa second input connected to the output of the divider. In this way thesubtractor of the interpolator stage serves to provide a sequence ofsignals on the basis of the second clock frequency.

Assuming an input signal of the interpolator stage jumping from 0 to 1and further assuming that the divider is constantly dividing the outputof the adder by a factor of 2, the output sequence of the subtractorreads as: ½, ¼, ⅛, 1/16, 1/32 and so on. In this way, a series ofsignals can be generated, wherein the difference between consecutivesignals constantly decreases. In this way, a much more effectiveinterpolation scheme compared to a linear interpolation can be provided.

According to a further embodiment an output of the interpolator stage'ssubtractor is connected to the integrator of the digital interpolator.Hence, a series of signals as mentioned above is integratable by meansof the integrator. Moreover, by way of the integrator, the initialderivative provided by the differentiator can be compensated and thesignal output of the digital interpolator is then in the same domaincompared to its initial input.

According to another embodiment the integrator comprises a storage andan adder. One input of the adder is connected to the integrator'sstorage while the further input of the adder is connected to theinterpolator stage's output. Also the integrator is driven by the secondclock signal. In this way, a sequence of interpolated signals isgeneratable.

In another embodiment the interpolator's storage and the integrator'sstorage are operated on the second clock frequency. In this way, theinterpolator stage and the integrator are effectively clocked by thesecond clock frequency and respective clock signals.

According to a further embodiment at least one of the interpolator'sstorage and the integrator's storage is resettable by the first clock,hence by the first clock signal. In this way, the interpolator can bereset at the beginning of an interpolation operation. A potentialdrifting of the output of the digital interpolator can be prevented inthis way.

In still another embodiment at least one of the storage of theinterpolator stage and the storage of the integrator is connected withan output of an OR-gate having an input connected to the first clock. Inthis way, the storage of at least one of the interpolator stage or theintegrator is reset at regular time intervals that correspond to thetime interval between consecutive signals of the first clock. Also inthis way, a drift of output signals of the digital interpolator can beprevented and counteracted.

Typically, both, the storage of the interpolator stage and the storageof the integrator are each connected via a separate OR-gate with thefirst clock.

According to another aspect the invention also relates to an electronicdevice comprising at least one digital interpolator as described above.The electronic device may be implemented as a mobile or wearable device.It may comprise an electronic watch or a mobile phone.

In a further aspect the invention also relates to a method ofinterpolating an input signal provided on the basis of a first clockfrequency to a series of signals on the basis of a second clockfrequency, wherein the second clock frequency is larger than the firstclock frequency. The method comprises the steps of differentiating theinput signal provided on the first clock frequency, interpolating asequence of consecutive differentiated signals and integrating thesequence of interpolated signals.

In particular, the method is implemented and conducted by the digitalinterpolator as described above. Consequently, the invention asdescribed in connection with the digital interpolator equally applies tothe method of interpolating and vice versa. In particular, any features,benefits and characteristics described in connection to the digitalinterpolator equally apply to the method of interpolating; and viceversa.

BRIEF DESCRIPTION OF THE DRAWINGS

In the following, an embodiment of the invention will be described bymaking reference to the drawings, in which:

FIG. 1 schematically shows a circuit diagram of the digitalinterpolator,

FIG. 2 shows a further representation of the digital interpolator,

FIG. 3 shows an output and an input signal of the digital interpolator,

FIG. 4 shows various signals of the digital interpolator at its input,its output as well as at the output or input of its components, namelydifferentiator, interpolator stage and/or integrator, and

FIG. 5 is a flowchart of a respective method of interpolating.

DETAILED DESCRIPTION

In FIG. 1, the digital interpolator 10 is illustrated in a blockdiagram.

The digital interpolator comprises an input 12 to receive and to processan input signal 50 and further comprises an output 18 to provide aninterpolated output signal 52. The digital interpolator 10 furthercomprises a first clock input 14 and a second clock input 16. The inputsignal 50 is provided on the basis of the first clock signal driven by afirst clock frequency f1 while the output 18 is driven by a second clocksignal, i.e. by a second clock frequency f2, which is larger than thefirst clock frequency f1.

The digital interpolator 10 comprises a differentiator 20, aninterpolator stage 30 as well as an integrator 40. Differentiator 20,interpolator stage 30 and integrator 40 are mutually connected to form acascade. The output of the differentiator 20 is connected to an input ofthe interpolator stage 30 while an output of the interpolator stage isconnected to an input of the integrator 40. The output of the integrator40 forms or corresponds to the output 18 of the digital interpolator 10.The input 12 of the digital interpolator 10 is equal to or is connectedto the input of the differentiator 20.

The first clock input 14 is connected to a first clock 15 operating at afirst clock frequency f1. The second clock input 16 is connected to asecond clock 19 driven by a second clock frequency f2, which is largerthan the first clock frequency f1.

Typically, the second clock frequency f2 is a multiple integer of thefirst clock frequency f1.

The differentiator 20 comprises a storage 22 driven by the first clock15 and further comprises a subtractor 24. The subtractor 24 comprises afirst input 24 a and a second input 24 b. The first input 24 a isconnected to the input 12 while the second input 24 b is connected to anoutput 22 c of the storage 22. A first input 22 a of the storage 22 isalso connected to the input 12. A second input 22 b of the storage 22 isconnected to the first clock 15 via the clock input 14. In this way, thestorage 22 acts and behaves like a shift register. It is operable tostore one signal value and to output the stored signal value at aproceeding clock signal. In this way, one input 24 a of the subtractor24 of the differentiator 20 is connected to the input 12 while the otherinput 24 b is connected to the output 22 c of the storage 22. In thisway, the subtractor 24 is supplied with the signal input at a time T andwith an input at a time T-1.

The subtractor 24 therefore compares and subtracts consecutive signalsthat are present to the differentiator 20 at subsequent clock times ofthe first clock 15.

The output 24 c of the subtractor 24 forms an output 25 of thedifferentiator 20 which is connected to the interpolator stage 30.

The interpolator stage 30 comprises another storage 32, an adder 34, adivider 36 as well as a subtractor 38. As illustrated in FIGS. 1 and 2,the interpolator stage 30 comprises and forms an interpolator stageoutput 39 that is connected to the integrator 40, in particular to aninput of the integrator 40. The storage 32 of the interpolator stage 30comprises a first input 32 a that is connected with an output 36 b ofthe divider 36.

An input 36 a of the divider 36 is connected to an output 34 c of theadder 34. A second input 34 b of the adder 34 is connected to an output32 c of the storage 32. In this way, storage 32, adder 34 and divider 36form a closed loop. The storage 32 further comprises a second input 32 bthat is connected to the second clock 19. Hence, the storage 32 of theinterpolator stage 30 is driven by the second clock 19 and operatestherefore faster than the differentiator 20. A first input 34 a of theadder 34 of the interpolator stage 30 is connected to the output 25 ofthe differentiator 20 and hence it is connected to the output 24 c ofthe differentiator's 20 subtractor 24. The loop 32, 34, 36 of theinterpolator stage 30 serves to generate a sequence of signals, suchlike ½, ¾, ⅞, 15/16, and so on given that the input signal 50 jumps from0 to 1 and two consecutive signals are operated and driven by the firstclock.

The interpolator stage 30 further comprises a subtractor 38 having afirst input 38 a and a second input 38 b as well as an output 38 c thatforms an output 39 of the interpolator stage 30. The input 38 a of thesubtractor 38 is directly connected to the output 25 of thedifferentiator 20. The further input 38 b of the subtractor 38 isconnected to the output 36 b of the divider 36. In this way, a sequenceof signals as described and mentioned above is transferred into asequence, such like: ½, ¼, ⅛, 1/16, 1/32, and so on.

The integrator 40 comprises another adder 44 and a storage 42. A firstinput of the storage 42 a is connected to an output 44 c of the adder 44while another input 42 b of the storage 42 is also connected to thesecond clock 19. An input 44 a of the adder 44 is connected to theoutput 39 of the interpolator stage 30. A further input 44 b of theadder 44 is connected to the output 42 c of the storage 42. As itbecomes apparent from FIG. 1, the adder 44 and the storage 42 of theintegrator 40 are arranged in a closed loop so that consecutive signalsobtained at the input 44 a of the adder 44 accumulate. So when the inputsignal 50 for instance jumps from 0 to 1 between consecutive signals tand t+1 of the first clock 15 the integrator 40 quickly deliversintermediate values, that quickly approach the target value of the inputsignal present at a clock time t+1.

In FIG. 2 the digital interpolator 10 according to FIG. 1 is shown inmore detail. There, identical or similar components are denoted withidentical or similar reference numbers. In addition, there are shown twoOR-gates 35, 45. The OR-gate 35 comprises an output 35 c that isconnected to a reset input of the storage 32 of the interpolator stage30. One input 35 a of this OR-gate 35 is connected to a reset switch,which is not particularly shown while the other input 35 b is connectedto the first clock 15 or to the first clock input 14.

In a similar way, also the first input 45 a of the OR-gate 45 of theintegrator 40 is connected to a reset switch while a second input 45 bof the OR-gate 45 is connected to the first clock 15 or to the firstclock input 14. Also there, the output 45 c of the OR-gate is connectedto a reset input of the storage 42 of the integrator 40. In this way thestorages 32, 42 are subject to repeated reset every time the first clock15 proceeds one step further. In this way, a drift of the output signalas well as offset effects upon a startup of the digital interpolator 10can be compensated or eliminated.

In addition and in comparison to FIG. 1, FIG. 2 further shows anotherstorage 26 of the differentiator 20. An output 26 c of this additionalstorage 26 is connected to the input 22 a of the storage 22. An input 26a of this additional storage 26 is connected to the input 12 of thedigital interpolator 10. Hence another input 26 b is also connected tothe first clock 15 or to the first clock input 14. In this way, thefurther input 26 acts as a buffer for the storage 22 and hence for thedifferentiator 20.

Furthermore in FIG. 2, there is another or second adder 46 in theintegrator 40 after the first adder 44. A first input of the secondadder 46 is connected to the output of the first adder 44, and a secondinput of the second adder 46 is connected to the second input of thesubtractor 24 of the differentiator 20. The output of the second adder46 provides an interpolated output signal 28, which is the output of theintegrator 40 of the digital interpolator 10.

It is to be noted that the second adder 46 takes the starting data valuefrom the differentiator 20 to add the result of the interpolation. Atevery reset, the interpolation result is zero and the second addersimply gives the starting data at its output 28.

In FIG. 3, an input signal 50 provided on the basis of the first clockfrequency f1 is shown together with the output signal 52 of the digitalinterpolator 10 that is provided on the basis of the second clockfrequency f2. As illustrated in FIG. 3, the input signal 50 is rathercourse while the output signal 52 represents a rather smoothinterpolation of the consecutive signal values of the input signal 50.

In FIG. 4 amplitude versus time of the input signal 50 and the outputsignal 52 is illustrated. In addition, FIG. 4 shows the output of thedifferentiator 20 and hence a differentiated input signal 54. FIG. 4 isfurther indicative of the output of the interpolator stage 30 andexemplary illustrates the interpolator stage output signal 56. Acomparison of input signal 50 and output signal 52 reveals a smootheningof the input signal 50.

It is finally to be noted, that the divider 36 of the interpolator stage30 is presently described as a divider operating with a divider thatequals 2. However, there are many other implementations conceivable,with different dividers 36, by way of which different interpolationschemes could be easily realized.

FIG. 5 further represents a flowchart of the method of interpolating asit is conducted and operated by the digital interpolator 10. In a firststep 100 an input signal is differentiated. In a consecutive second step102, the differentiated signal or derivated signal 54 is interpolated toform an interpolator stage output signal 56. In a further step 104, theinterpolated and differentiated signal 56 is integrated by means of theintegrator 40 to form the output signal 52 at a second clock frequencyf2, which is larger than the clock frequency f1 on which the inputsignal 50 is initially provided.

What is claimed is:
 1. A digital interpolator, comprising an input toreceive an input signal at a first clock frequency and comprising anoutput to provide an interpolated signal at a second clock frequencylarger than the first clock frequency, the interpolator comprising: adifferentiator connected to the input, an interpolator stage connectedto a differentiator output, and an integrator connected to the outputand connected to an output of the interpolator stage, wherein theinterpolator stage comprises a storage, an adder, a divider and asubtractor wherein an output of the adder is connected to a divider'sinput, wherein a divider's output is connected to a storage input andwherein a storage output is connected to an input of the adder, whereina first input of the substractor is connected to the differentiatoroutput and a second input of the subtractor is connected to thedivider's output, and wherein a further input of the adder is connectedto the differentiator output.
 2. The digital interpolator according toclaim 1, further comprising a first clock operated on the first clockfrequency and comprising a second clock operated on the second clockfrequency.
 3. The digital interpolator according to claim 1, wherein thesecond clock frequency is an integer multiple of the first clockfrequency.
 4. The digital interpolator according to claim 1, wherein thedifferentiator is operated on the first clock frequency and wherein theinterpolator stage and the integrator are operated on the second clockfrequency.
 5. The digital interpolator according to claim 1, wherein thedifferentiator comprises a storage driven by the first clock frequencyand a subtractor to calculate the difference between the input signal ata first clock time of the first clock and the input signal at afollowing clock time of the first clock.
 6. The digital interpolatoraccording to claim 1, wherein the divider divides the output of theadder by a constant factor.
 7. The digital interpolator according toclaim 1, wherein an output of the interpolator stage's subtractor isconnected to the integrator.
 8. The digital interpolator according toclaim 1, wherein the integrator comprises a storage and an adder,wherein one input of the adder is connected to the integrator's storageand wherein a further input of the adder is connected to theinterpolator stage's output.
 9. The digital interpolator according toclaim 1, wherein the interpolator stage's storage and an integrator'sstorage are operated on the second clock frequency.
 10. The digitalinterpolator according to claim 9, wherein at least one of theinterpolator stage's storage and the integrator's storage is resettableby the first clock.
 11. The digital interpolator according to claim 10,wherein at least one of the interpolator stage's storage and theintegrator's storage is connected with an output of an OR-gate having aninput connected to the first clock.
 12. An electronic device comprisingat least one digital interpolator according to claim
 1. 13. A method ofinterpolating a digital input signal of first clock frequency to anoutput signal of a second clock frequency, wherein the method comprisesthe steps of: differentiating a digital sequence of the input signal,interpolating the differentiated sequence in an interpolator stage,which comprises a storage, an adder, a divider and a subtractor whereinan output of the adder is connected to a divider's input, wherein adivider's output is connected to a storage input and wherein a storageoutput is connected to an input of the adder, wherein a first input ofthe substractor is connected to the differentiator output and a secondinput of the subtractor is connected to the divider's output, andwherein a further input of the adder is connected to the differentiatoroutput, and integrating the interpolated signal from the interpolatorstage.